package com.edu.eduservice.domain.view;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @ClassName SubjectType
 * @date 2022/9/15 19:49
 * @Version 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SubjectType {

    @ApiModelProperty("分类编号")
    private String id;
    @ApiModelProperty("分类名称")
    private  String name;

    //二级分类
    @ApiModelProperty("二级分类")
    List<SubjectType> children;

    public SubjectType(String id, String name) {
        this.id = id;
        this.name = name;
    }

}
